<template>
  <div class="pra-top">
    <div class="pra-title">近期最受期待</div>
    <div class="pra-wrap">
      <ul>
        <li v-for="item in hotlist" :key="item.id">
          <div>
            <img :src="item.img" alt="item.nm" />
          </div>
          <div class="pra-xin">♥</div>
          <div class="pra-ren">{{ item.wish }}人想看</div>
          <div class="pra-ym">{{ item.nm }}</div>
          <div class="pra-sj">{{ item.comingTitle }}</div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "DaiyingHot",
  props: ["hotlist"],
};
</script>

<style lang="less" scoped>
.pra-top {
  margin-left: 6px;
}
&::-webkit-scrollbar {
  display: none;
}
.pra-title {
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  color: #333;
  border-top: 2px solid #ededed;
}
.pra-wrap {
  width: 95%;
  margin: auto;
  overflow-x: scroll;
  ul {
    width: 942px;
    display: flex;

    li {
      margin-right: 10px;
      width: 2.2667rem;
      height: 175px;
      position: relative;
      .pra-score {
        position: absolute;
        top: 2.6133rem;
        left: 0;
        color: #faaf00;
        font-size: 11px;
      }
      .pra-xin {
        width: 0.7467rem;
        height: 0.7467rem;
        font-size: 15px;
        line-height: 0.7467rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        color: #d1d1cc;
        position: absolute;
        top: 0;
        left: 0;
      }
      .pra-ren {
        position: absolute;
        top: 2.6133rem;
        left: 0.1067rem;
        color: #faaf00;
        font-size: 11px;
        font-weight: bold;
      }
      .pra-ym {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: bold;
        font-size: 13px;
        margin-top: 4px;
      }
      .pra-sj {
        font-size: 12px;
        color: #9999;
        margin-top: 6px;
      }
      img {
        width: 2.2667rem;
        height: 3.0667rem;
      }
    }
  }
}
</style>